package cn.wangsy.zhidao.p20170109;

import java.util.Random;

public class RandomNumber {

	public static void main(String[] args) {

		int []numbers = {1,2,5,4,3,42,71,25,6};
		Random random = new Random();
		int index = random.nextInt(numbers.length);
		System.out.println(numbers[index]);
		
		int y =0;
		int i=0;
		for(;i<10;++i){
			y+=i;
		}
		System.out.println(i);
		
	}

}
